import random

def generate_random_data():
    "generate random data for file"
    len = random.randint(1, 1000)
    buff = ''
    for i in range(len):
        buff = buff + ''.join([chr(random.randrange(256)) for i in range(102)])
    return buff